package myzd.domain.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import myzd.domain.UserRoles;

import java.util.Date;
import java.util.List;

/**
 * @author zks
 * @since 2017/10/21 16:11
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserInfo {
  private Long userId;
  private String name;
  private String mobile;
  private String email;
  private String avatar;
  private int departmentId;
  private String departmentName;
  /**
   * 是否离职: false 表示离职，true 表示在职
   */
  private boolean inService;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  //离职时间
  private Date dimissionDate;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date createdAt;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date modifiedAt;
  private String staffId;

  private List<UserRoles> role;

}
